package com.peanut.youfupay.entity.response;

import lombok.Data;

import java.io.Serializable;
import java.util.List;


/**
 * 商户批量代付接口响应结果实体类
 */
@Data
public class PaymentTransRes implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String CODE_0000 = "0000";
    public static final String MSG_0000 = "受理成功";

    public static final String CODE_0001 = "0001";
    public static final String MSG_0001 = "参数错误";

    public static final String CODE_0002 = "0002";
    public static final String MSG_0002 = "结算信息在黑名单不允许做结算";

    public static final String CODE_0003 = "0003";
    public static final String MSG_0003 = "结算信息风控验证未通过";

    public static final String CODE_0004 = "0004";
    public static final String MSG_0004 = "商户限额验证未通过";

    public static final String CODE_0005 = "0005";
    public static final String MSG_0005 = "计算商户手续费出错或商户手续费率不存在";

    public static final String CODE_0006 = "0006";
    public static final String MSG_0006 = "结算用户未在平台签约";


    private Integer successNum;//成功数

    private Integer failureNum;//失败数

    private List<PayResultList> payResultList;//返回数据集合

    // 商户批次号
    private String merBatchId;
    @Data
    public static class PayResultList {

        private String merOrderId;//商户订单号

        private String payItemId;//订单流水号

        private long amt;//代付金额

        private long fee;//服务费

        private Integer splitFlag;//订单拆分标识 0：未拆分，1：已拆分

        private String resCode;//响应码

        private String resMsg;//响应信息
    }
}
